package com.agile.leetcode.interfacespec;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/10/26 11:33
 */
public class CheckImpl implements Check {
    @Override
    public int sum(String a, String b) {
        // 调用静态接口方法
        System.out.println(Check.multy(5, 4));
        // 调用默认口方法
        if (check(a, b)) {
            return Integer.parseInt(a) + Integer.parseInt(b);
        }

        return -1;
    }

    public static void main(String[] args) {
        CheckImpl check = new CheckImpl();
        System.out.println(check.sum("1", "2"));

    }
}
